package com.video_study.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/home")
public class HomeController {
    @RequestMapping("/{path}")
    public String userIndex(@PathVariable String path){
        return "pc/"+path;
    }

    @RequestMapping("/userList")
    public String userList(){
        return "manage/userList";
    }

    @RequestMapping("/addUser")
    public String addUser(){
        return "manage/addUser";
    }

    @RequestMapping("/editUser")
    public String editUser(){
        return "manage/editUser";
    }

}
